home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 2
/
Gold Medal Software Volume 2 (Gold Medal) (1994).iso
/
comms
/
dialers.arj
/
HSTV_T.T
< prev
next >
Wrap
Text File
|
1994-01-18
|
5KB
|
106 lines
:: For U S Robotics HST modems
:: Change the next script line to match the speed in initmodem
:: (in the initmodem subroutine near the end of this file).
dialnum if js2,mnp ife du sp 19200; else sp 57600
gosub waketb :: get modem to respond
pat; pat 9 OK
put "AT"
if !js2,mnp put "&M0&B0&H0&R1"
if js2,mnp put "&M5"
if js2,_s put "&H2&I2&R1"
if js2,_c put "&K1" :: MNP5 compression
if js2,_nc put "&K0" :: No compression
if js2,v32 put "S13=32" :: V.32 only, HST defeated
if js2,hst put "B1" :: Requests HST
if js2,o_hst put "S27=4" :: HST only, V.32 defeated
if js2,a_mnp put "&M4S15=16" :: MNP4 defeated for error prone lines
if js2,300 put "&N1"
if js2,1200 put "&N2"
if js2,2400 put "&N3"
if dp ss s2 "(c:)(.*)"; if %z2 put "%z2 " :: for extra commands
if "%s3>8" put "S7=70" : longer wait if long distance
put "Q0E1V1S10=10\r"; wait -f2
if %alds if ps3,0 putw "ATS8=10\r"
put "%mprefix"; put "%s3%alds"; dis -Q
if js2,man put ";\r"; echo "Hit F1 when Tone is heard"; t; put "ATD"
put "\r"; dis -t
if "js3,;" accept s1 "Lift Telephone Receiver, Hit ENTER"; o; return
pat 1 "CONNECT\r"; pat 2 "NO CARRIER"; pat 3 "BUSY"; pat 4 RING;
pat 5l "CONNECT 1200"; pat 6l "CONNECT 2400"; pat 7l "CONNECT FAST"
pat 8 "NO DIALTONE"; pat 10l "CONNECT 300"
pat 11l "CONNECT 9600"; pat 12l "CONNECT 19200"
pat 13 "VOICE"; pat 14 "NO ANSWER"; pat 15l "CONNECT 4800"
pat 16l "CONNECT 7200"; pat 17l "CONNECT 12000"; pat 18l "CONNECT 14400"
pat 19l "CONNECT 16800"; pat 20l "CONNECT 21600"
wait -f72
while "4&&!L>3" wait -f60 :: wait for a few rings only
if "n||8||9||2||3||4||13||14" goto sorry
if "!hARQ" if !%s1 if "11||12||15||16||17||18||19||20" bye; echo "Requires ARQ"; ret ::Disconnects high speed, non-ARQ
if js2,fast if "!hV32" if "!hHST" bye; echo "No Fast Connect"; goto sorry
dis -d
if dd while "!c&&L<20" sleep 1 : For modems with slow carrier det
if dp estimate 0 300; if "hCONNECT" ss y "[0-9]+"; estimate 0 z0
if "hCARRIER" ss y "[0-9]+"; estimate 0 z0
if "!hARQ" set s1 ""
if !%s1 goto ns1
:: if !Js1,s handshake slow; lput "Handhake SLOW: " :: for slow HD
if !Js1,s handshake on; lput "Handshake ON: "
if "hARQ" echo "ARQ Connected"
echo "Speed Locked"; goto mm2end
ns1: if "hMNP" echo "MNP Connected"; handshake both; goto mm2end
if "hLAPM" echo "LAPM Connected"; handshake both; goto mm2end
if "hHST" echo "HST Connected"; handshake both; goto mm2end
if js2,mnp set s2 ""
arq: if "1||10" if is5,450 sp 450; echo "450 bps"; goto mm2end
if "1||10" sp 300; echo "300 bps"; goto mm2end
if 5 sp 1200; goto mm2end
if 6 sp 2400; goto mm2end
if "du&&7" sp 9600; echo "9600 bps"; goto mm2end
if 15 sp 4800; goto mm2end
if 16 sp 7200; goto mm2end
if 11 sp 9600; goto mm2end
if "7||12" sp 19200; goto mm2end
if 17 sp 12000; goto mm2end
if 18 sp 14400; goto mm2end
if 19 sp 16800; goto mm2end
if 20 sp 21600; goto mm2end
sorry: echo "No Connect Message Detected."
return
mm2end: set s9 "y"
if js1,mnp sleep 15 : for gliches in MM224E
return
:: If you change the speed below, you MUST change the speed in
:: lines labelled "dialnum" and "call2" in this file !!!
initmodem pat 0 "OK"
ife du speed 19200; else speed 57600
put "AT&F1 X6 &B2\r"; wait -f4 :: HW flow control template
put "ATS11=40\r" :: faster tone dialing
put "AT&K3\r"; wait -f4 :: enable v.42bis
if js0,,aa put "ATE0 Q2 S0=1 S7=18\r"; wait -f5
put "AT&W\r"; wait -f4
return
call1 bye; sp 19200; gosub waketb; putw ATM0H1\r"
return
call2 bye;
sp 57600 :: Change this to match speed in initmodem
ife du speed 19200; else speed 57600
gosub waketb; pat 1 OK
put "ATX6 Q0 S0=1 &A2 &B2 B0 S28=0 &H1 &I0 &K0 &M4 &R2 &Y0\r"; wait -f2
:: put "AT&K3 S15=16\r"; wait -f2 :: Dual Standard/v.42bis
put "AT&K3\r"; wait -f2 :: Dual Standard/v.42bis
return
V_TERBO.T is a modification of HST.T for the new USR Dual Standard V.32 terbo
modem by Mitchell Halperin. Result codes and messages were modified, redundant
commands were eliminated and a few options added. I added a line to disconnect
non-ARQ high speed connections as these are unreliable. "Initmodem" was
modified to use the hardware flow control default template (&F1) and to
eliminate commands which can't be stored in NVRAM (i.e. Q0, V1, E1).